package model

type Comment struct {
	CommentId       int    `json:"comment_id" gorm:"column:comment_id"`
	LikeCount       int    `json:"like_count" gorm:"column:like_count"`
	DislikeCount    int    `json:"dislike_count" gorm:"column:dislike_count"`
	Likes           int    `json:"likes" gorm:"column:likes"`
	IsBeenCommented bool   `json:"is_been_commented" gorm:"column:is_been_commented"`
	CommentCount    int    `json:"comment_count" gorm:"column:commented_count"`
	UserId          int    `json:"user_id" gorm:"column:user_id"`
	UserNickName    string `json:"user_nickname" gorm:"column:user_nickname"`
	UserAvatar      string `json:"user_avatar" gorm:"column:user_avatar"`
	Content         string `json:"content" gorm:"column:content"`
}

type UserComment struct {
	CommentId    int    `json:"comment_id" gorm:"column:comment_id"`
	NewsId       int    `json:"news_id" gorm:"column:news_id"`
	NewsTitle    string `json:"news_title" gorm:"column:news_title"`
	Content      string `json:"content" gorm:"column:content"`
	ReplyId      int    `json:"reply_id" gorm:"column:reply_id"`
	ReplyContent string `json:"reply_content" gorm:"column:reply_content"`
}
